package com.hundsun.s3.mrs.core.talker;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * talker的描述符，所有的Talker都是以组的单位进行管理
 * @author chenji23607
 *
 */
public class Talker implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	
	@SuppressWarnings("unused")
	private Talker() {}

	/**
	 * 
	 * @param id
	 * @param name
	 * @param groupId
	 * @param groupName
	 */
	public Talker(String id, String name) {
		super();
		this.id = id;
		this.name = name;
	}

	private String id;
	
	private String name;
	
	private Long loginTime;
	
	private Long logoutTime;
	
	private boolean isOnline;

	private List<String> groups = new ArrayList<>();
	
	
	public List<String> getGroups() {
		return groups;
	}

	public void setGroups(List<String> groups) {
		this.groups = groups;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(Long loginTime) {
		this.loginTime = loginTime;
	}

	public Long getLogoutTime() {
		return logoutTime;
	}

	public void setLogoutTime(Long logoutTime) {
		this.logoutTime = logoutTime;
	}

	public boolean isOnline() {
		return isOnline;
	}

	public void setOnline(boolean isOnline) {
		this.isOnline = isOnline;
	}
	
}
